'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/oauth/authorize', controller.authorize.authorize);
  router.post('/oauth/token', controller.token.token);
  router.get('/oauth/token', controller.token.getCsrf);
  router.post('/login', controller.users.login);
  router.post('/signup', controller.users.signup);
  router.post('/scope', controller.scope.submit);
};
